package main

import (
	"fmt"
	"math/rand"
	"strconv"
	"time"
)

func main() {
	rand.Seed(int64(time.Now().Nanosecond()))
	num := int64(rand.Intn(100))
	var guessString string
	var guessNum int64
	fmt.Println("pls input your number:")
	for {
		fmt.Scanln(&guessString)
		guessNum, _ = strconv.ParseInt(guessString, 10, 0)
		switch {
		case guessNum > num:
			fmt.Println("bigger")
		case guessNum < num:
			fmt.Println("smaller")
		default:
			fmt.Println("equal")
			goto TERMINAL
		}
	}
TERMINAL:
}

func gnorm() {
}
